<?php
namespace app\common\validate;

use think\Validate;

class ImgValidate extends Validate
{
    protected $rule =   [
        'id'         => 'require|integer',
        'path|路径'  => 'require|in:avatar,reimburse',
    ];
    
    protected $scene = [
        /** api */
        'img'   => ['path'],
    ];
}